package com.woniu.service.impl;

import com.woniu.client.WorkClient;
import com.woniu.inlet.vo.MaterialBomVo;
import com.woniu.service.BomPoService;
import com.woniu.uitl.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BomPoServiceImpl implements BomPoService {

    @Autowired
    private WorkClient workClient;

    @Override
    public MaterialBomVo getBomByCode(String materialCode) {

        ResponseResult<MaterialBomVo> materialBomByMaterialCode = workClient.getMaterialBomByMaterialCode(materialCode);
        MaterialBomVo body = materialBomByMaterialCode.getData();
        return body;
    }
}
